/// <summary> /// 新增 /// </summary> /// <param name="value"></param> /// <returns></returns> public MessageEntity Post([FromBody] P_Role value) { if (value == null) { return(MessageEntityTool.GetMessage(ErrorType.FieldError)); } return(_roleDAL.Add(value)); }
public int Add(RoleModel st) { return(irb.Add(st)); }
public void Add(Role role) { roleDAL.Add(role); }
public bool Add(Role entity) { return(_roleDAL.Add(entity) > 0); }