Example #1
0
        public List <ObiInfoModel> Get(string id)
        {
            //ユーザーIDから帯を取得
            RegistObiHandler roh = new RegistObiHandler();

            return(roh.GetObi(id));
        }
Example #2
0
        public void Delete(string obiId, string accessToken)
        {
            //所有者のIDを取得
            string id = LoginHandler.GetIdFromToken(accessToken);

            RegistObiHandler roh = new RegistObiHandler();

            roh.DeleteObi(obiId, id);
        }
Example #3
0
        public void Post([FromBody] PostedData pos)
        {
            //情報チェック
            if (!LoginHandler.Auth_LoginInfoCheck(pos.LoginInfo))
            {
                throw new Exception("ログイン情報不正");
            }

            //帯を保存
            RegistObiHandler roh = new RegistObiHandler();

            roh.RegistObi(pos.BookData, pos.Imgdata, pos.LoginInfo);
        }