Ejemplo n.º 1
0
        public async Task <IActionResult> Delete(AdminUserStatusDeleteViewModel viewModel)
        {
            UserStatus userStatus = await userStatusService.GetByIDAsync(viewModel.ID);

            if (userStatus != null)
            {
                await userStatusService.DeleteAsync(userStatus.Id);

                return(RedirectToAction("Index"));
            }

            return(View());
        }
Ejemplo n.º 2
0
 public async Task Delete(int id)
 {
     await userStatusService.DeleteAsync(id);
 }