Esempio n. 1
0
        public ActionResult Create(SalaryEditModel salaryEditModel)
        {
            PopulateDropDownLists(salaryEditModel);

            if (ModelState.IsValid)
            {
                salaryEditModel.UserId = CurrentUser;

                _salaryService.CreateSalary(salaryEditModel);

                return(RedirectToAction("Index"));
            }

            return(View(salaryEditModel));
        }
 public void Post([FromBody] SalaryDetails createdObj)
 {
     _SalaryService.CreateSalary(createdObj);
 }