Beispiel #1
0
        public ActionResult Apply(Guid id)
        {
            Job model = JobManager.GetById(id);

            model.AddApplier(User.Identity.Name);
            bool _result = JobManager.Update(model);

            if (_result)
            {
                if (Request.IsAjaxRequest())
                {
                    return(PartialView("Jobs/_Job", model));
                }
                return(RedirectToAction("Index"));
            }
            else
            {
                return(PartialView("Messages/_Error", "Can not Apply"));
            }
        }