Пример #1
0
        public async Task <IActionResult> AddCourses(IEnumerable <int> courseIds, string id)
        {
            try
            {
                await _studentRepo.AddManyCourses(courseIds, id);

                return(Ok(new ResponseModel("00", "Success", null)));
            }
            catch (Exception ex) { return(BadRequest(new ResponseModel("22", "Failed", new { ex.Message }))); }
        }