Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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")));
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> Delete(int id)
        {
            await service.Delete(id);

            return(Ok());
        }