Beispiel #1
0
        public bool Delete([FromBody] TblProductTypeMaster product)
        {
            try
            {
                this._repoWrapper.Product.Delete(product);
                this._repoWrapper.Product.Save();
                return(true);
            }

            catch (Exception e)
            {
                return(false);
            }
        }
Beispiel #2
0
        public bool Update([FromBody] TblProductTypeMaster product)
        {
            try
            {
                //this._repoWrapper.Product.Update(product);
                //this._repoWrapper.Product.Save();
                this._repoWrapper.Product.SaveOpeningStockDetails(product);
                return(true);
            }

            catch (Exception e)
            {
                return(false);
            }
        }
Beispiel #3
0
        public IEnumerable <TblProductTypeMaster> GetTypeByProductID([FromBody] TblProductTypeMaster type)
        {
            var prodtype = this._repoWrapper.Product.GetAllProductTypeForProduct(type);

            return(prodtype);
        }