public ResponseDto() { Success = false; ResponseType = ResponseType.Error; Validation = new ResponseValidationDto(); Message = string.Empty; MethodName = string.Empty; }
public void SetError(long errorId, string message, string methodName, ResponseType responseType, ResponseValidationDto responseValidationDto) { Success = false; ErrorId = errorId; ResponseType = responseType; Message = message; MethodName = methodName; Validation = responseValidationDto; }