コード例 #1
0
        public IHttpActionResult TogglePriority(int id)
        {
            var repository = new RepositoryTask();
            var response   = repository.TogglePriority(id, CurrentUserId);

            return(Ok <DataResponse>(response));
        }
コード例 #2
0
        public IHttpActionResult TogglePriority(int id)
        {
            var repository = new RepositoryTask();
            var response   = repository.TogglePriority(id, CurrentUserId);

            response.Message = "success";
            response.Status  = DataResponseStatus.OK;
            return(Ok <DataResponse>(response));
        }