/// <summary> /// 根据id删除职位信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public int Delete(int id) { return(PositionInfoBll.DeleteById(id)); }
/// <summary> /// 职位修改 /// </summary> /// <param name="positionInfo"></param> /// <returns></returns> public int Put([FromBody] PositionInfo positionInfo) { return(PositionInfoBll.Update(positionInfo)); }
/// <summary> /// 根据职位id查询单条职位信息 /// </summary> /// <param name="id">职位id</param> /// <returns></returns> public PositionInfo Get(int id) { return(PositionInfoBll.GetById(id)); }
/// <summary> /// 职位添加 /// </summary> /// <param name="positionInfo"></param> /// <returns></returns> public int Post([FromBody] string positionInfoStr) { return(PositionInfoBll.Add(positionInfoStr)); }
//职位管理 /// <summary> /// 获取所有职位信息 /// </summary> /// <returns></returns> public List <PositionInfo> Get() { return(PositionInfoBll.GetAllPositionInfo()); }