/// <summary> /// API to get details of a particular admin /// </summary> /// <param name="id">Employee ID</param> /// <returns></returns> public IHttpActionResult GetAdminDetails(string username, string orgID) { _Logger.Info("GetAdminDetails API called."); try { _ExceptionCheck.ValidateAdminUsername(username); Admin admin = _BusinessOperations.GetAdminDetails(username, orgID); if (admin == null) { return(NotFound()); } else { return(Ok(admin)); } } catch (EmployeeManagementExceptions exception) { _Logger.Error(exception.ToString()); return(InternalServerError(exception)); } catch (Exception ex) { _Logger.Error(ex.ToString()); return(InternalServerError(ex)); } }