Ejemplo n.º 1
0
 public bool Update(CitizenPlan model)
 {
     try
     {
         _db.Update(model);
         _db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 public static CitizenPlanViewModel MapToCitizenPlanViewModel(this CitizenPlan model)
 {
     return(new CitizenPlanViewModel()
     {
         Id = model.Id,
         ArTitle = model.ArTitle,
         EnTitle = model.EnTitle,
         ArMainTitle = model.ArMainTitle,
         ArDescription = model.ArDescription,
         EnDescription = model.EnDescription,
         EnMainTitle = model.EnMainTitle,
         IsActive = model.IsActive,
         IsDeleted = model.IsDeleted,
         Image = model.Image,
         EnImage = model.EnImage,
         Link = model.Link
     });
 }