Beispiel #1
0
        public DeleteSalaryIncrement DeleteSalaryIncrement(DeleteSalaryIncrement obj)
        {
            var returnModel      = new DeleteSalaryIncrement();
            var SalaryIncrements = _SalaryIncrementsRepo.Get(obj.SalaryIncrementId);

            if (SalaryIncrements != null)
            {
                _SalaryIncrementsRepo.Delete(SalaryIncrements);
            }
            return(returnModel);
        }
 public async Task <IActionResult> DeleteSalaryIncrement(long SalaryIncrementId)
 {
     try
     {
         var model = new DeleteSalaryIncrement()
         {
             SalaryIncrementId = SalaryIncrementId
         };
         await Task.Run(() => _SalaryIncrementsServ.DeleteSalaryIncrement(model));
     }
     catch (Exception)
     {
         return(BadRequest());
     }
     return(RedirectToAction("SalaryIncrementsList"));
 }