public ActionResult InsertGroupEntry(MultipleModel model) { try { Group_EntryBL gebl = new Group_EntryBL(); model.GroupModel.InsertOperator = Session["CompanyCD"].ToString(); Boolean insertFlag = false; if (model.GroupModel.SaveUpdateFlag == null) { model.GroupModel.SaveUpdateFlag = "Save"; DataTable dt = new DataTable(); dt = gebl.Check_Duplicate_GroupEntry(model); if (dt.Rows.Count > 0) { TempData["Imsg"] = "Duplicate"; } else { string PcName = System.Environment.MachineName; insertFlag = gebl.InsertGroupEntry(model, PcName); if (insertFlag) { TempData["Smsg"] = "success"; } else { TempData["Emsg"] = "Unsuccess"; } } } else { string PcName = System.Environment.MachineName; string a = model.GroupModel.SaveUpdateFlag; insertFlag = gebl.InsertGroupEntry(model, PcName); if (insertFlag) { TempData["USmsg"] = "success"; } else { TempData["UEmsg"] = "Unsuccess"; } } return(RedirectToAction("Group_Entry")); } catch (Exception ex) { string st = ex.ToString(); return(RedirectToAction("Group_Entry")); } }
public string M_Brand_Select() { Group_EntryBL gbl = new Group_EntryBL(); return(DataTableToJSONWithJSONNet(gbl.Get_M_BrandName())); }