コード例 #1
0
ファイル: ActorController.cs プロジェクト: ngtanphuong/Mock
        public IHttpActionResult EditStatusById(int id)
        {
            ActorService actorService = new ActorService();
            var          m_status     = actorService.EditStatusById(id);

            if (m_status != -1)
            {
                return(Ok(m_status));
            }
            return(BadRequest("không thể thay đổi trạng thái của diễn viên này!"));
        }