public ServerResponse GetDataByShop(string shopID)
        {
            var res = new ServerResponse();

            using (InwardBL InwardBL = new InwardBL())
            {
                try
                {
                    res.Data = InwardBL.GetDataByShop(shopID);
                }
                catch (Exception ex)
                {
                    res.Success = false;
                }
            }
            return(res);
        }
        public ServerResponse Post([FromBody] QueryCondition queryCondition)
        {
            var res = new ServerResponse();

            using (InwardBL inwardBL = new InwardBL())
            {
                try
                {
                    res.Data = inwardBL.GetDataByQueryCondition(queryCondition);
                }
                catch (Exception ex)
                {
                    res.Success = false;
                }
            }
            return(res);
        }
        // POST: api/Unit
        public ServerResponse Post([FromBody] InwardObject InwardObj)
        {
            var res = new ServerResponse();

            using (InwardBL InwardBL = new InwardBL())
            {
                try
                {
                    res.Data = InwardBL.SaveInward(InwardObj);
                }
                catch (Exception ex)
                {
                    res.Success = false;
                }
            }
            return(res);
        }
        // DELETE: api/Unit/5
        public ServerResponse Delete(string id)
        {
            var res = new ServerResponse();

            using (InwardBL InwardBL = new InwardBL())
            {
                try
                {
                    res.Data = InwardBL.DeleteInward(id);
                }

                catch (Exception ex)
                {
                    res.Success = false;
                }
            }
            return(res);
        }
        //PUT: api/Unit/5
        public ServerResponse Put([FromBody] Inward Inward)
        {
            var res = new ServerResponse();

            using (InwardBL InwardBL = new InwardBL())
            {
                try
                {
                    res.Data = InwardBL.UpdateInward(Inward);
                }

                catch (Exception ex)
                {
                    res.Success = false;
                }
            }
            return(res);
        }