Example #1
0
        public WrapperBuildingSupplier GetSingleBuildingSupplier(int id)
        {
            WrapperBuildingSupplier data = new WrapperBuildingSupplier();

            data.BuildingSupplier = new BuildingSupplierCRUD().SelectSingle(id);
            return(data);
        }
Example #2
0
        public WrapperBuildingSupplier CreateSingleBuildingSupplier(BuildingSupplierENT UserProfile)
        {
            WrapperBuildingSupplier data = new WrapperBuildingSupplier();

            data.BuildingSupplier = new BuildingSupplierCRUD().CreateSingle(UserProfile);
            return(data);
        }
Example #3
0
        public IActionResult CreatBuildingSupplier([FromBody] WrapperBuildingSupplier userParam)
        {
            #region Validate Token
            RequestResponse isAuthorized = new Authorize().RequestTokenAuth(Request);
            if (isAuthorized.Success == false)
            {
                return(BadRequest(isAuthorized));
            }
            #endregion



            WrapperBuildingSupplier data = new Services.BuildingSupplierService().CreateSingleBuildingSupplier(userParam.BuildingSupplier);

            return(Ok(data));
        }