public Views.user userinfo(int id) { try { Cook.BLL.users user = new Cook.BLL.users(); return(user.GetUser(id.ToString())); } catch (Exception) { return(null); } }
public Views.user userinfo() { try { string token = HttpContext.Current.Request.Headers["Authorization"].ToString(); Cook.BLL.users user = new Cook.BLL.users(); return(user.GetUser(common.getIdByToken(token))); } catch (Exception) { return(null); } }