//Gets the user with 'name' public UserModel GetUserByName(string name) { try { return(userCtrl.GetUserByName(name)); } catch (Exception ex) { throw ex; } }