/// <summary>
        /// Merge two contact
        /// </summary>
        /// <param name="userDetail"></param>
        /// <returns></returns>
        public Response <ClientMergeViewModel> MergeRecords(ClientMergeViewModel clientMerge)
        {
            const string apiUrl   = BaseRoute + "MergeRecords";
            var          response = _communicationManager.Post <ClientMergeModel, Response <ClientMergeModel> >(clientMerge.ToModel(), apiUrl);

            return(response.ToViewModel());
        }
        public static ClientMergeModel ToModel(this ClientMergeViewModel entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var model = new ClientMergeModel
            {
                ParentMRN = entity.ParentMRN,
                ChildMRN  = entity.ChildMRN
            };

            return(model);
        }
Ejemplo n.º 3
0
 public Response <ClientMergeViewModel> MergeRecords(ClientMergeViewModel clientMerge)
 {
     return(_clientMergeRepository.MergeRecords(clientMerge));
 }