public HttpResponseMessage UpdateCustomField(UpdateContactDetailCustomFieldRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            SuccessResponse response = new SuccessResponse();

            ContactDetailCustomFieldsService.UpdateContactDetailCustomField(model);
            return(Request.CreateResponse(response));
        }
        public HttpResponseMessage AddCustomField(AddContactDetailCustomFieldRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            ItemResponse <int> response = new ItemResponse <int>();

            response.Item = ContactDetailCustomFieldsService.UpdateContactDetailCustomField(model);
            //ItemsResponse<int> response = new ItemsResponse<int>();
            //foreach (AddContactDetailCustomFieldRequest model in models)
            //{
            //    response.Items.Add(ContactDetailCustomFieldsService.UpdateContactDetailCustomField(model));
            //}
            return(Request.CreateResponse(response));
        }