public User GetUserByUserId(string userId) { try { if (!string.IsNullOrWhiteSpace(userId)) { UserBC UserBC = new UserBC(); return(UserBC.GetUserByUserId(userId)); } else { throw new Exception("User Id is required and it cannot be null or empty."); } } catch (Exception ex) { throw ex; } finally { } }