public ActionResult AddComplaint(ComplaintModel ObjComp) { try { ComplaintRepo Obj = new ComplaintRepo(); ViewBag.ComplaintId = "Successfully, Your Id: " + Obj.AddComplaint(ObjComp); } catch (Exception) { ViewBag.ComplaintId = "error, please check details"; } return(View()); }
public ComplaintManager() { _cRepo = new ComplaintRepo(); }