Example #1
0
        public SingleRsp CreateSupplier(CreateSupplierReq spl)
        {
            var       res       = new SingleRsp();
            Suppliers suppliers = new Suppliers();

            //suppliers.SuppliersId = spl.SuppliersId;
            suppliers.SuppliersName = spl.SuppliersName;
            suppliers.City          = spl.City;
            res = _rep.CreateSupplier(suppliers);
            return(res);
        }
        public IActionResult CreateSupplier([FromBody] CreateSupplierReq req)
        {
            var res = _svc.CreateSupplier(req);

            return(Ok(res));
        }