Example #1
0
        public ActionResult CreateJobArea(JobArea jobArea)
        {
            if (PlatformHelper.FindJobArea(jobArea.Name) == null)
            {
                dbNew.JobAreas.Add(jobArea);
                dbNew.SaveChanges();
            }
            string message = "SUCCESS";

            return(Json(new { Message = message, JsonRequestBehavior.AllowGet }));
        }