Exemplo n.º 1
0
        public ActionResult Create(AddSchedulerEvent addSchedulerEvent)
        {
            if (this.ModelState.IsValid)
            {
                addSchedulerEvent.ExecuteNonQuery();
                return(Json(new { Result = "Success", Url = "" }));
            }

            return(View("", addSchedulerEvent));
        }
Exemplo n.º 2
0
        public ActionResult AddSchedulerEvent(AddSchedulerEvent addSchedulerEvent)
        {
            string cancelUrl = $"/Providers/Scheduler/{addSchedulerEvent.SkuCategoryId}/Appointment/{addSchedulerEvent.SkuCategoryId}?employeeId={addSchedulerEvent.EmployeeId}";

            if (this.ModelState.IsValid)
            {
                addSchedulerEvent.ExecuteNonQuery();
                return(Redirect(cancelUrl));
            }


            return(View("FormPage", addSchedulerEvent));
        }