예제 #1
0
        public int SubmitContactEnquiry(ContactEnquiryDTO model)
        {
            ContactEnquiry contact = new ContactEnquiry();

            contact = mapper.Map <ContactEnquiry>(model);
            return(NotificationRepository.SubmitContactEnquiry(contact));
        }
예제 #2
0
 public int SubmitContactEnquiry(ContactEnquiry model)
 {
     model.CreatedDate = DateTime.Now;
     DbContext.ContactEnquiries.Add(model);
     return(DbContext.SaveChanges());
 }