Esempio n. 1
0
 public ActionResult Save(FormCollection fc)
 {
     if (fc["id"] == null || fc["id"] == "")
     {
         Billtype_details t   = new Billtype_details();
         Boolean          res = t.InsertBilltype_details(fc);
         if (res)
         {
             return(Content("Record Inserted Successfully"));
         }
         else
         {
             return(Content("Error Adding Record Try Again"));
         }
     }
     else
     {
         Billtype_details t   = new Billtype_details();
         Boolean          res = t.UpdateBilltype_details(fc);
         if (res)
         {
             return(Content("Record Edited Successfully"));
         }
         else
         {
             return(Content("Error Editing Record Try Again"));
         }
     }
     //return PartialView("SaveRec");
 }