public ActionResult Create(ApplicantAvailabilityStatusCategory applicantavailabilitystatuscategory)
 {
     if (ModelState.IsValid) {
         applicantavailabilitystatuscategoryRepository.InsertOrUpdate(applicantavailabilitystatuscategory);
         applicantavailabilitystatuscategoryRepository.Save();
         return RedirectToAction("Index");
     } else {
         return View(applicantavailabilitystatuscategory);
     }
 }
Ejemplo n.º 2
0
 public static string GetApplicantStatus(ApplicantAvailabilityStatusCategory applicantStatus)
 {
     if (applicantStatus != null)
     {
         return applicantStatus.Name;
     }
     return string.Empty;
 }
 public ViewResult Search(ApplicantAvailabilityStatusCategory searchApplicantAvailabilityStatusCategory)
 {
     if(searchApplicantAvailabilityStatusCategory!=null)
     {
                     }
                 return View("Index",applicantavailabilitystatuscategoryRepository.All);
 }
 public ActionResult Create()
 {
     ApplicantAvailabilityStatusCategory applicantavailabilitystatuscategory = new ApplicantAvailabilityStatusCategory();
     return View(applicantavailabilitystatuscategory);
 }
 public void InsertOrUpdate(ApplicantAvailabilityStatusCategory applicantavailabilitystatuscategory)
 {
     if (applicantavailabilitystatuscategory.ApplicantAvailabilityStatusCategoryID == default(int)) {
         // New entity
         context.ApplicantAvailabilityStatusCategory.Add(applicantavailabilitystatuscategory);
     } else {
         // Existing entity
         context.Entry(applicantavailabilitystatuscategory).State = EntityState.Modified;
     }
 }