Esempio n. 1
0
        public async Task <IHttpActionResult> RemoveType(int id)
        {
            if (id < 1)
            {
                return(BadRequest());
            }

            try
            {
                await _kudosService.RemoveKudosTypeAsync(id, GetUserAndOrganization());

                return(Ok());
            }
            catch (ValidationException e)
            {
                return(BadRequestWithError(e));
            }
        }