Exportar a Word Foro y Matriz

git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C207
This commit is contained in:
dmendez 2018-07-11 22:21:47 +00:00
parent 15c9bac3de
commit a4fbb30a0b

View file

@ -23,6 +23,7 @@ namespace AYA.SlnSinortModel.DAL.Sinort
{
int? Next_id = Conn.ComentariosProyecto.Max(t => (int?)t.IdComentarioProyecto);
model.Comentario.IdComentarioProyecto = (Next_id == null) ? 1 : Next_id.Value + 1;
model.Comentario.UsuarioSistema = model.UserName;
model.Comentario.UsuarioCreacion = model.UserName;
model.Comentario.FechaCreacion = DateTime.Now;
Conn.ComentariosProyecto.Add(model.Comentario);