예제 #1
0
        public async Task <IActionResult> DeleteProject(DeleteProjectDTO input)
        {
            try
            {
                await _projectService.DeleteProject(input);

                return(Ok("The process is success"));
            }
            catch (Exception)
            {
                return(BadRequest("An error occurred during the deleting process. Please try again !"));
            }
        }
예제 #2
0
 public async Task DeleteProject(DeleteProjectDTO input)
 {
     await _repository.Delete(input.Id);
 }