public JsonResult DeleteLanguage(Guid id) { MemoryMessageBuss.PushCommand(new DeleteLaguage(id, CurrentUserId, DateTime.Now)); EngineeCurrentContext.RefreshListLanguage(); return(Json(new { Ok = true, Data = new { Id = id }, Message = "Success" }, JsonRequestBehavior.AllowGet)); }
public JsonResult SaveLanguage(Guid id, string title, string code, string currencyCode, double currencyExchangeRate) { if (id == Guid.Empty) { id = Guid.NewGuid(); MemoryMessageBuss.PushCommand(new CreateLanguage(id, title, code, currencyCode, currencyExchangeRate, CurrentUserId, DateTime.Now)); } else { MemoryMessageBuss.PushCommand(new UpdateLanguage(id, title, code, currencyCode, currencyExchangeRate, CurrentUserId, DateTime.Now)); } EngineeCurrentContext.RefreshListLanguage(); return(Json(new { Ok = true, Data = new { Id = id }, Message = "Success" }, JsonRequestBehavior.AllowGet)); }
public void Handle(SendContactUsInfo c) { var dqem = new DomainContactUsInfo(c.Id, c.FromName, c.FromEmail, EngineeCurrentContext.GetEmailForContactUs() , c.FromPhone, EngineeCurrentContext.GetPhoneForContactUs(), c.Title, c.Body, c.LanguageId); }