Exemplo n.º 1
0
        public JsonResult Delete(string ID = "")
        {
            var _user = HttpContext.Session.GetSession <User>("User");

            _groupManager.Delete(ID, _user.ID);

            TempData["message"] = HelperMethods.ObjectConvertJson(new TempDataModel {
                type = "success", message = _localizer["Transaction successful"]
            });

            return(Json(""));
        }
Exemplo n.º 2
0
 public async Task <ApiResponse> Delete(int id) => await manager.Delete(id);