public JsonResult GetOtherUsers() { string emailId = GetEmailIdAndRefreshUserSession(false); List <User> users = DALayer.GetAllUsers(emailId); users.ForEach(x => x.LastSeenDiff = (DateTime.UtcNow - x.LastSeen).TotalSeconds.ToString()); return(Json(users, JsonRequestBehavior.AllowGet)); }