Пример #1
0
        public ActionResult ContactsPrintVersion(bool historyflag, int contacttypeid)
        {
            var CLR = new ContactListRequest()
            {
                ContactTypeID = contacttypeid,
                HistoryFlag   = historyflag
            };

            var CTDetails = CBL.Details(contacttypeid);

            CTDetails.HistoryFlag = historyflag;
            CTDetails.ContactList = CBL.ContactList(CLR);

            return(View(CTDetails));
        }
Пример #2
0
        public HttpResponseMessage List([FromBody] ContactListRequest model)
        {
            var CT = CBL.Details(model.ContactTypeID);

            CT.ContactList = CBL.ContactList(model);

            if (CT.ContactTypeID > 0)
            {
                return(this.Request.CreateResponse(HttpStatusCode.OK, CT));
            }
            else
            {
                return(this.Request.CreateResponse(HttpStatusCode.NotFound));
            }
        }