public static ExecuteResultEntity CreateErrorResultEntity(string ErrorMessage) { ExecuteResultEntity model = new ExecuteResultEntity(); model.Errors = new string[] { ErrorMessage }; return(model); }
public static ExecuteResultEntity CreateErrorResultEntity(Exception ex) { ExecuteResultEntity model = new ExecuteResultEntity(); if (model.Errors == null) { model.Errors = new string[] { } }