//ID được gán kiểu nullable - HttpGet là click vào lấy dữ liệu public async Task <ActionResult> Action(string ID) { RoleActionModels model = new RoleActionModels(); if (!string.IsNullOrEmpty(ID))//we are trying to edit a record { } return(PartialView("_Action", model)); }
public async Task <ActionResult> Delete(string ID) { RoleActionModels model = new RoleActionModels(); //var user = await UserManager.FindByIdAsync(ID); //model.ID = user.Id; //else//we are trying to create a record //{ //} return(PartialView("_Delete", model)); }