Exemple #1
0
        public async Task <IActionResult> Delete(int skillId)
        {
            var success = await _skillLogic.DeleteAsync(skillId);

            if (success == ResponseLogic.SUCCESS)
            {
                return(NoContent());
            }
            else if (success == ResponseLogic.NOT_FOUND)
            {
                return(NotFound());
            }
            else
            {
                return(StatusCode(500));
            }
        }