public static Response Error(string key) { ValidateError validateError = ValidateMessage(key); Response response = new Response { State = validateError.Code, Message = validateError.LongName, Data = null, Exceptions = null }; return(response); }
public static Response Success(object data) { ValidateError validateError = ValidateMessage("Completed"); Response response = new Response { State = validateError.Code, Message = validateError.LongName, Data = data, Exceptions = null }; return(response); }