public WrapperBuildingSupplier GetSingleBuildingSupplier(int id) { WrapperBuildingSupplier data = new WrapperBuildingSupplier(); data.BuildingSupplier = new BuildingSupplierCRUD().SelectSingle(id); return(data); }
public WrapperBuildingSupplier CreateSingleBuildingSupplier(BuildingSupplierENT UserProfile) { WrapperBuildingSupplier data = new WrapperBuildingSupplier(); data.BuildingSupplier = new BuildingSupplierCRUD().CreateSingle(UserProfile); return(data); }
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)); }