public bool Delete([FromBody] TblProductTypeMaster product) { try { this._repoWrapper.Product.Delete(product); this._repoWrapper.Product.Save(); return(true); } catch (Exception e) { return(false); } }
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); } }
public IEnumerable <TblProductTypeMaster> GetTypeByProductID([FromBody] TblProductTypeMaster type) { var prodtype = this._repoWrapper.Product.GetAllProductTypeForProduct(type); return(prodtype); }