public ActionResult Delete(string id)
        {
            CustomResponse res = APICalls.Delete("AuthenticationAPI/Delete?userid=" + id);

            if (res.Status == CustomResponseStatus.Successful)
            {
                TempData["Message"] = res.Message;
                return(RedirectToRoute("UsersHomeRoute", new { Role = "" }));
            }
            else
            {
                ViewBag.Message = "Failed to Delete User";
                return(View());
            }
        }
示例#2
0
 public void Delete(int id) =>
 APICalls <InventoryViewModel> .Delete(InventoryUrl, id);