コード例 #1
0
        public WrapperDocType GetSingleDocType(int id)
        {
            WrapperDocType data = new WrapperDocType();

            data.DocType = new DocTypeCRUD().SelectSingle(id);
            return(data);
        }
コード例 #2
0
        public WrapperDocType CreateSingleDocType(DocTypeENT UserProfile)
        {
            WrapperDocType data = new WrapperDocType();

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



            WrapperDocType data = new Services.DocTypeService().CreateSingleDocType(userParam.DocType);

            return(Ok(data));
        }