public ActionResult Create(ApplicantAvailabilityStatusCategory applicantavailabilitystatuscategory)
 {
     if (ModelState.IsValid) {
         applicantavailabilitystatuscategoryRepository.InsertOrUpdate(applicantavailabilitystatuscategory);
         applicantavailabilitystatuscategoryRepository.Save();
         return RedirectToAction("Index");
     } else {
         return View(applicantavailabilitystatuscategory);
     }
 }
예제 #2
0
파일: MiscUtility.cs 프로젝트: absdk/RslSDK
 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;
     }
 }