public async Task <ActionResult> UsersDelete(int customerAuditorID) { //if ((customerAuditorID == null) || (username.ToString().Length == 0)) //{ // return new HttpStatusCodeResult(HttpStatusCode.BadRequest); //} CustomerAuditor customerAuditor = await customerAuditorRepository.FindByIdAsync(customerAuditorID); if (customerAuditor == null) { return(HttpNotFound()); } var model = new EditCustomerAuditorUserViewModel(customerAuditor); return(View(model)); }
public async Task <ActionResult> CustomersDelete(int customerAuditorID, string userID) { CustomerAuditor customerAuditor = await customerAuditorRepository.FindByIdAsync(customerAuditorID); if (customerAuditor == null) { return(HttpNotFound()); } var model = new EditAssignCustomerViewModel(customerAuditor); return(View(model)); }