コード例 #1
0
ファイル: PartyTypeService.cs プロジェクト: besiw/nbk-api-app
        public WrapperPartyType GetSinglePartyType(int id)
        {
            WrapperPartyType data = new WrapperPartyType();

            data.PartyType = new PartyTypeCRUD().SelectSingle(id);
            return(data);
        }
コード例 #2
0
ファイル: PartyTypeService.cs プロジェクト: besiw/nbk-api-app
        public WrapperPartyType CreateSinglePartyType(PartyTypeENT UserProfile)
        {
            WrapperPartyType data = new WrapperPartyType();

            data.PartyType = new PartyTypeCRUD().CreateSingle(UserProfile);
            return(data);
        }
コード例 #3
0
        public IActionResult CreatPartyType([FromBody] WrapperPartyType userParam)
        {
            #region Validate Token
            RequestResponse isAuthorized = new Authorize().RequestTokenAuth(Request);
            if (isAuthorized.Success == false)
            {
                return(BadRequest(isAuthorized));
            }
            #endregion



            WrapperPartyType data = new Services.PartyTypeService().CreateSinglePartyType(userParam.PartyType);

            return(Ok(data));
        }