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