コード例 #1
0
        public async Task <IActionResult> DeleteFromRoom(string room)
        {
            if (String.IsNullOrEmpty(room))
            {
                return(StatusCode(400, "Invalid parameter(s)."));
            }

            //Remove issue(s)
            var succeeded = await _issueRepository.DeleteFromRoom(room);

            if (!succeeded)
            {
                return(StatusCode(500, "A problem occured while removing the issue. Please try again!"));
            }

            return(Ok());
        }