/// <summary>
 /// 增加印章使用单位信息
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static async Task AddAsync(Models.SealUseUnitInfor model)
 {
     using (var db = new DAL.SealUseUnitInforDAL())
     {
         await db.AddAsync(model);
     }
 }
        /// <summary>
        /// 根据Id修改印章使用单位信息
        /// </summary>
        /// <param name="unitNumber"></param>
        /// <returns></returns>
        public static async Task EditForId(int id, Models.SealUseUnitInfor model)
        {
            using (var db = new DAL.SealUseUnitInforDAL())
            {
                var data = await db.GetAll().FirstAsync(m => m.Id == id);

                data.EnglishName             = model.EnglishName;
                data.EnterpriseDocumentsType = model.EnterpriseDocumentsType;
                data.EthnicMinoritiesName    = model.EthnicMinoritiesName;
                data.IdNumber           = model.IdNumber;
                data.IdNumbers          = model.IdNumbers;
                data.LegelPerson        = model.LegelPerson;
                data.Name               = model.Name;
                data.Note               = model.Note;
                data.Phone              = model.Phone;
                data.TheUnitType        = model.TheUnitType;
                data.UnitAddress        = model.UnitAddress;
                data.UnitClassification = model.UnitClassification;
                data.UnitNumber         = model.UnitNumber;
                await db.EditAsync(data);
            }
        }