/// <summary> /// Delete Author /// </summary> /// <param name="request">author request.</param> /// <returns>Author message.</returns> public AuthorMessage DeleteAuthor(AuthorRequest request) { AuthorMessage message = new AuthorMessage(); try { _serviceAuthor.DeleteAuthor(request.ToPivot()); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }