public static EntityOperationResult <T> Success(T entity) { var result = new EntityOperationResult <T>(entity); result.IsSuccess = true; return(result); }
public static EntityOperationResult <T> Failure() { var result = new EntityOperationResult <T>(); result.IsSuccess = false; result.Errors = new string[0]; return(result); }