/// <summary> /// create model /// </summary> /// <typeparam name="T">model type</typeparam> /// <param name="modelList">model list</param> /// <returns>create model quantity</returns> public virtual int CreateByModel <T>(List <T> modelList) where T : class { IMainDal dal = new MainDal(); return(dal.CreateByModel(modelList)); }
/// <summary> /// create model /// </summary> /// <typeparam name="T">model type</typeparam> /// <param name="model">model</param> /// <returns>create model quantity</returns> public virtual int CreateByModel <T>(T model) where T : class { IMainDal dal = new MainDal(); return(dal.CreateByModel <T>(model)); }