Example #1
0
        public IActionResult Put(int id, [FromBody] Lecturer lecturer)
        {
            var tempLecturer = _dataStore.updateLecturer(id, lecturer);

            if (tempLecturer != null)
            {
                return(Ok(tempLecturer));
            }
            else
            {
                return(NotFound());
            }
        }