public IActionResult GetMajorById(Guid MajorId) { if (_service.GetMajorById(MajorId) == null) { return(NotFound("Not found Major for this ID")); } return(Ok(_service.GetMajorById(MajorId))); }