public GeneralResponse DeleteSupport(DeleteRequest request) { GeneralResponse response = new GeneralResponse(); try { Support support = new Support(); support = _supportRepository.FindBy(request.ID); _supportRepository.Remove(support); _uow.Commit(); } catch (Exception ex) { response.ErrorMessages.Add(ex.Message); if (ex.InnerException != null) { response.ErrorMessages.Add(ex.InnerException.Message); } } return(response); }