コード例 #1
0
        public ResponseResult <Cookie> Reg([FromBody] Owner owner)
        {
            ResponseResult <Cookie> result = new ResponseResult <Cookie>();

            try
            {
                OwnerService ownerService = new OwnerService();
                result.Result = ownerService.AddOwner(owner);
            }
            catch (Exception e)
            {
                result.IsSuccess = false;
                result.Message   = e.Message;
            }
            return(result);
        }
コード例 #2
0
        public Cookie Reg([FromBody] Owner owner)
        {
            OwnerService ownerService = new OwnerService();

            return(ownerService.AddOwner(owner));
        }