Ejemplo n.º 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));;
        }