public ActionResult Category(EntyMotors collection) { if (collection.cat != null) { EntyMotors tbl_obj = new EntyMotors(); tbl_obj.cat = collection.cat; string result = db.saveCat(collection); ViewBag.Res = result; if (result == "Success") { ModelState.Clear(); } } else if (collection.Job_Cat != null) { EntyMotors tbl_obj = new EntyMotors(); tbl_obj.Job_Cat = collection.Job_Cat; string res = db.JobCat(collection); ViewBag.Result = res; if (res == "Success") { ModelState.Clear(); } } else if (collection.Job_Cat != null) { EntyMotors tbl_obj = new EntyMotors(); tbl_obj.Pro_Cat = collection.Pro_Cat; string res = db.JobCat(collection); ViewBag.Result = res; if (res == "Success") { ModelState.Clear(); } } return(View()); }
public string CommunityCat(EntyMotors obj) { return(db1.communityInsert(obj.Community_Cat).FirstOrDefault()); }
public string ClassifiedsCat(EntyMotors obj) { return(db1.classifiedsInsert(obj.Classifieds_Cat).FirstOrDefault()); }
public string ProCat(EntyMotors obj) { return(db1.PropInsert(obj.Pro_Cat).FirstOrDefault()); }
public string JobCat(EntyMotors obj) { return(db1.JobInsert(obj.Job_Cat).FirstOrDefault()); }
public string saveCat(EntyMotors obj) { return(db1.MotorInsert(obj.cat).FirstOrDefault()); }