public ResponseDTO UpdateRegistro([FromBody] Appointments_medicalDTO value)
        {
            var Response = new ResponseDTO();

            Data.ControlCenter.Model.Appointments_medical u;

            u = uR.GetById(value.EntityID, false);
            //u = AutoMapper.Mapper.Map(value, u);
            u.Scheduledhourend = value.Scheduledhourend;
            u.Status           = (Data.ControlCenter.Model.nStatus)Enum.Parse(typeof(Data.ControlCenter.Model.nStatus), value.Status.ToString());
            u.Comments         = value.Comments;
            u.Medicalservice   = value.Medicalservice;
            u.Address          = value.Address;
            u.Log.UserUpdate   = value.Log.UserUpdate;
            FuncionLogActualizaciones L = new FuncionLogActualizaciones();

            L.LogModificacion(u.Log);

            uR.SaveOrUpdate(u);
            uR.CommitChanges();

            Response.Success = true;
            Response.Message = "Actualizado";

            return(Response);
        }
        public ResponseDTO UpdateRegistro([FromBody] CustomerDTO value)
        {
            var Response = new ResponseDTO();

            if (value.EntityID == 0)
            {
                Response.Message = "EntityID es requerido";
            }
            try
            {
                Data.ControlCenter.Model.Customer u;

                u                = uR.GetById(value.EntityID, false);
                u.Address        = value.Address;
                u.CustomerName   = value.CustomerName;
                u.Tel            = value.Tel;
                u.Log.UserUpdate = value.Log.UserUpdate;
                // u = AutoMapper.Mapper.Map(value, u);

                FuncionLogActualizaciones L = new FuncionLogActualizaciones();
                L.LogModificacion(u.Log);

                uR.SaveOrUpdate(u);
                uR.CommitChanges();

                Response.Success = true;
                Response.Message = "Actualizado";
            }
            catch (Exception ex)
            {
                Response.Message = ex.Message;
            }
            return(Response);
        }
        public ResponseDTO UpdateRegistro([FromBody] MedicDTO value)
        {
            var Response = new ResponseDTO();

            Data.ControlCenter.Model.Medic u;

            u = uR.GetById(value.EntityID, false);
            u = AutoMapper.Mapper.Map(value, u);

            FuncionLogActualizaciones L = new FuncionLogActualizaciones();

            L.LogModificacion(u.Log);

            uR.SaveOrUpdate(u);
            uR.CommitChanges();

            Response.Success = true;
            Response.Message = "Actualizado";

            return(Response);
        }