Exemplo n.º 1
0
        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";
            var model = new WebContactUsModel();

            return(View(model));
        }
Exemplo n.º 2
0
        ActionOutput <WebContactUsModel> IContactUsManager.GetContactUsByID(int ContactUsID = 0)
        {
            var recipient = Context.ContactUs.Where(z => z.ID == ContactUsID).FirstOrDefault();

            if (recipient != null)
            {
                var model = new WebContactUsModel();
                model = Mapper.Map <ContactU, WebContactUsModel>(recipient, model);
                return(new ActionOutput <WebContactUsModel>()
                {
                    Message = "Details", Status = ActionStatus.Successfull, Object = model
                });
            }
            else
            {
                return(new ActionOutput <WebContactUsModel>()
                {
                    Status = ActionStatus.Error,
                    Message = "Record not exist."
                });
            }
        }
Exemplo n.º 3
0
        public JsonResult SubmitContactUs(WebContactUsModel model)
        {
            var result = _userManager.WebRequestContactUs(model);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }