BillResultFactory.cs
474 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HHWCS.Bill
{
public class BillResultFactory
{
public static BillResult<T> Sucess<T>(T data,String msg)
{
return new BillResult<T>(true, msg, data);
}
public static BillResult<T> Error<T>(T data, String msg)
{
return new BillResult<T>(false, msg, data);
}
}
}