public IActionResult NewStudentRegistration([FromBody] RegistrationModel model) { try { if (string.IsNullOrEmpty(model.FullName) | string.IsNullOrEmpty(model.School) | string.IsNullOrEmpty(model.UserName) | string.IsNullOrEmpty(model.Password)) { return(BadRequest(new ArgumentNullException())); } return(Ok(_RegistrationBL.NewStudentRegistration(model))); } catch (Exception e) { return(StatusCode(500, e.GetBaseException())); } }