예제 #1
0
        public async Task <IActionResult> DeleteEmpPost(int id)
        {
            bool success = await _empRepository.DeleteEmp(id);

            if (success == true)
            {
                return(RedirectToAction(nameof(RemoveEmp), new { isSucceess = true }));
            }
            return(View());
        }
예제 #2
0
 public void Delete(int id)
 {
     _empRepository.DeleteEmp(id);
 }