/// <summary>
 /// 新增
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public MessageEntity Post([FromBody] P_Department value)
 {
     if (value == null)
     {
         return(MessageEntityTool.GetMessage(ErrorType.FieldError));
     }
     return(_departmentDAL.Add(value));
 }
Beispiel #2
0
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="model">实体</param>
 /// <returns>主键值</returns>
 public object Add(Department model)
 {
     return(dal.Add <Department>(model));
 }