public void AddComment(string ForamMessage, string UserName) { Foram foram = new Foram(); foram.ForamMessage = ForamMessage; foram.ForamUser = UserName; foram.Posted = System.DateTime.Now; foram.IsActive = 1; db.Forams.AddObject(foram); }
public void AddComment(string ForamMessage) { Foram foram = new Foram(); foram.ForamMessage = ForamMessage; foram.ForamUser = HttpContext.Current.User.Identity.Name; foram.Posted = System.DateTime.Now; foram.IsActive = 1; db.Forams.AddObject(foram); }