Пример #1
0
        public IHttpActionResult PutExistingStudent(Guid id, Guid idStudent)
        {
            string result = db.AddExistingStudent(id, idStudent);

            if (result.Contains("successfully"))
            {
                return(Ok(result));
            }
            return(Content(HttpStatusCode.NotFound, result));;
        }