public bool InsertarUsers_acts(Dtos.users_actsDTO dto) { try { using (var modelo = new PersistenciaDatos.SignalDBEntities()) { var entity = dto.ToEntity(); modelo.users_acts.Add(entity); modelo.SaveChanges(); return(true); } } catch (Exception) { throw new NotImplementedException(); } }
public bool ActualizarUsers_acts(Dtos.users_actsDTO dto) { try { using (var modelo = new PersistenciaDatos.SignalDBEntities()) { var w = modelo.users_acts.Where(q => q.id_user_act == dto.id_user_act).Select(q => q).FirstOrDefault(); if (w == null) { return(false); } Dominio.Convertidores.users_actsCONVERTIDOR.Actualizar(dto, w); modelo.SaveChanges(); return(true); } } catch (Exception) { throw new NotImplementedException(); } }