public async Task <IActionResult> AdminRegistration(RegistrationModel registrationModel) { try { if (!registrationModel.Equals(null)) { ////AdminBusinessManager method called var result = await this.adminBusinessManager.AdminRegistration(registrationModel); if (!result.Equals(null)) { return(this.Ok(new { result })); } else { return(this.BadRequest()); } } else { return(BadRequest(new { Message = "model is invalid" })); } } catch (Exception ex) { throw new Exception(ex.Message); } }