Exemplo n.º 1
0
        public IHttpActionResult DeleteGender(long id)
        {
            try
            {
                _genderAppService.Delete(id, AuthHelper.GetCurrentUserId());

                return(Ok("Gender Deleted"));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }
Exemplo n.º 2
0
        public async Task <ActionResult> Delete(int id)
        {
            await _genderAppService.Delete(id);

            return(RedirectToAction("Index"));
        }