예제 #1
0
        public async Task <IActionResult> DeleteLocation(DeleteLocationDTO input)
        {
            try
            {
                await _locationService.DeleteLocation(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 DeleteLocation(DeleteLocationDTO input)
 {
     await _repository.Delete(input.Id);
 }