public bool UpdatePositionMethod(PositionMethodModel model) { var entity = _positionMethodService.GetById(model.Code); entity = model.MapTo <PositionMethodModel, tb_PositionMethod>(entity); return(_positionMethodService.Update(entity)); }
public bool AddPositionMethod(PositionMethodModel model) { var entity = model.MapTo <tb_PositionMethod>(); return(_positionMethodService.Insert(entity) > 0); }