public ActionResult InsertRole(MasterRole model) { dict.Clear(); dict.Add("@Role", model.RoleName); dict.Add("@mode", "InsertRole"); int i = common_Class.return_nonquery(dict, "Proc_role"); var Result = i > 0 ? Convert.ToBoolean(true).ToString() : Convert.ToBoolean(false).ToString(); return(Json(Result, JsonRequestBehavior.AllowGet)); }
public ActionResult Insert_Item(Item_Model item) { dict.Clear(); // dict.Add("@id",item.id); dict.Add("@Item_Name", item.item_name); dict.Add("@category", item.category); dict.Add("@Sub_category", item.sub_category); dict.Add("@Uom", item.UOM); dict.Add("@Uom_value", item.UOM_value); dict.Add("@rate", item.rate); dict.Add("@Scheme_value", item.Scheme_values); dict.Add("@Scheme_Quantity", item.scheme_qty); dict.Add("@Gst", item.gst); dict.Add("@mode", "insert"); var Result = common_class.return_nonquery(dict, "proc_item"); return(Json(Result, JsonRequestBehavior.AllowGet)); }
public ActionResult delete_area(int id) { dict.Clear(); dict.Add("@id", id); dict.Add("@mode", "DeActivate_Area"); var result = common_class.return_nonquery(dict, "proc_Area"); return(Json(result, JsonRequestBehavior.AllowGet)); }
public ActionResult EmployeeRegistrations(Employees_Modal emp) { //Employees_Modal emp = new Employees_Modal(); dict.Clear(); dict.Add("@FullName", emp.fullName); dict.Add("@Gender", emp.gender); dict.Add("@DOB", emp.dob); dict.Add("@Mobile", emp.mobile); dict.Add("@Email", emp.email); dict.Add("@Address", emp.address); dict.Add("@Area", emp.area); dict.Add("@State", emp.state); dict.Add("@UserName", emp.userName); dict.Add("@Password", emp.password); dict.Add("@Role", emp.role); dict.Add("@Security", emp.Security); dict.Add("@mode", "insert"); var Result = commonClass.return_nonquery(dict, "proc_employee"); //= i > 0 ? true : false; return(Json(Result, JsonRequestBehavior.AllowGet)); }