Exemplo n.º 1
0
 public static void DeleteMapping(AppLab_mapping source)
 {
     using (var dbContext = new HMSEntities())
     {
         var dbobj = dbContext.Lab_Mapping.FirstOrDefault(o => o.Id == source.Id);
         dbContext.Lab_Mapping.Remove(dbobj);
         dbContext.SaveChanges();
     }
 }
Exemplo n.º 2
0
 public JsonResult DeleteMapping(AppLab_mapping source)
 {
     LabService.DeleteMapping(source);
     return(Json(false, JsonRequestBehavior.AllowGet));
 }