public ActionResult Create(SalesCampaignStatusCategory salescampaignstatuscategory)
 {
     if (ModelState.IsValid) {
         salescampaignstatuscategoryRepository.InsertOrUpdate(salescampaignstatuscategory);
         salescampaignstatuscategoryRepository.Save();
         return RedirectToAction("Index");
     } else {
         return View(salescampaignstatuscategory);
     }
 }
 public ViewResult Search(SalesCampaignStatusCategory searchSalesCampaignStatusCategory)
 {
     if(searchSalesCampaignStatusCategory!=null)
     {
                     }
                 return View("Index",salescampaignstatuscategoryRepository.All);
 }
 public ActionResult Create()
 {
     SalesCampaignStatusCategory salescampaignstatuscategory = new SalesCampaignStatusCategory();
     return View(salescampaignstatuscategory);
 }
 public void InsertOrUpdate(SalesCampaignStatusCategory salescampaignstatuscategory)
 {
     if (salescampaignstatuscategory.SalesCampaignStatusCategoryID == default(int)) {
         // New entity
         context.SalesCampaignStatusCategory.Add(salescampaignstatuscategory);
     } else {
         // Existing entity
         context.Entry(salescampaignstatuscategory).State = EntityState.Modified;
     }
 }