public ActionResult Create(ClaimFieldGroupTemplate claimFieldGroupTemplate) { if (!ModelState.IsValid) { return(View(claimFieldGroupTemplate)); } _claimFieldGroupTemplateFactory.CreateClaimFieldGroupTemplate(claimFieldGroupTemplate); return(RedirectToAction("Edit", "ClaimTemplate", new { @id = claimFieldGroupTemplate.ClaimTemplateID })); }
public ActionResult Edit(ClaimFieldGroupTemplate claimFieldGroupTemplate) { if (!ModelState.IsValid) { return(View(claimFieldGroupTemplate)); } _claimFieldGroupTemplateFactory.UpdateClaimFieldGroupTemplate(claimFieldGroupTemplate); if (HttpContext.Request.QueryString["mode"] == "grid" || HttpContext.Request.QueryString["mode"] == "fromTemplate") { return(RedirectToAction("Edit", "ClaimTemplate", new { @id = claimFieldGroupTemplate.ClaimTemplateID })); } return(View(claimFieldGroupTemplate)); }
public bool UpdateClaimFieldGroupTemplate(ClaimFieldGroupTemplate claimFieldGroupTemplate) { _db.Entry(claimFieldGroupTemplate).State = EntityState.Modified; _db.SaveChanges(); return(true); }
public bool DeleteClaimFieldGroupTemplate(ClaimFieldGroupTemplate claimFieldGroupTemplate) { _db.ClaimFieldGroupTemplates.Remove(claimFieldGroupTemplate); _db.SaveChanges(); return(true); }
public bool CreateClaimFieldGroupTemplate(ClaimFieldGroupTemplate claimFieldGroupTemplate) { _db.ClaimFieldGroupTemplates.Add(claimFieldGroupTemplate); _db.SaveChanges(); return(true); }