public async Task <IActionResult> DeleteMember(string email) { var members = await _membersService.GetMemberById(email); if (members == null) { return(NotFound($"{email} does not exist. Please try again.")); } await _membersService.Delete(email); return(Ok()); }
public ActionResult Delete(Guid id) { MembersModel model = new MembersModel(); var info = service.GetById(id); if (info != null) { service.Delete(info); return(Json(new AjaxResult() { Result = Result.Success })); } return(View(PluginHelper.GetViewPath(this.GetType(), "Index"))); }
public async Task <IActionResult> Delete(int id) { await service.Delete(id); return(Ok()); }