Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public ActionResult Create(MessageCreateView newData) { var account = _userServices.GetAccount(User.Identity.Name); var photo = _userServices.Get(account).Url; newData.Account = User.Identity.Name; newData.Photo = photo; newData.CreateTime = DateTime.Now; Message data = Mapper.Map <Message>(newData); _messageServices.Insert(data); return(RedirectToAction("Index", "Home")); }