public Sal_LineItemForShopModel GetById(Guid id)
        {
            string        status  = string.Empty;
            var           model   = new Sal_LineItemForShopModel();
            ActionService service = new ActionService(UserLogin);
            var           entity  = service.GetByIdUseStore <Sal_LineItemForShopEntity>(id, ConstantSql.hrm_sal_sp_get_LineItemForShopById, ref status);//note

            if (entity != null)
            {
                model = entity.CopyData <Sal_LineItemForShopModel>();
            }
            model.ActionStatus = status;
            return(model);
        }
        public Sal_LineItemForShopModel Post([Bind] Sal_LineItemForShopModel model)
        {
            #region Validate
            string message       = string.Empty;
            var    checkValidate = HRM.Business.Main.Domain.ValidatorService.OnValidateData <Sal_LineItemForShopModel>(model, "Sal_LineItemForShop", ref message);
            if (!checkValidate)
            {
                model.ActionStatus = message;
                return(model);
            }
            #endregion

            ActionService service = new ActionService(UserLogin);
            return(service.UpdateOrCreate <Sal_LineItemForShopEntity, Sal_LineItemForShopModel>(model));
        }