Exemple #1
0
 /// <summary>
 /// 更新部门
 /// </summary>
 /// <param name="cInfo">实体</param>
 public void Update(DepartmentInfo cInfo)
 {
     if (string.IsNullOrEmpty(cInfo.ID))
     {
         throw new ArgumentNullException("参数ID不能为空。");
     }
     dal.Update(cInfo);
 }
Exemple #2
0
        /// <summary>
        /// 添加部门
        /// </summary>
        /// <param name="ID">实体主键</param>
        /// <returns></returns>
        public void Delete(string ID)
        {
            DepartmentInfo cInfo = new DepartmentInfo();
            cInfo.ID = ID;

            dal.Delete(cInfo);
        }
Exemple #3
0
 /// <summary>
 /// 添加部门
 /// </summary>
 /// <param name="cInfo">实体</param>
 /// <returns>新增实体的主键</returns>
 public string Add(DepartmentInfo cInfo)
 {
     return dal.Add(cInfo);
 }