public virtual ApiMessengerResponseModel MapBOToModel(
            BOMessenger boMessenger)
        {
            var model = new ApiMessengerResponseModel();

            model.SetProperties(boMessenger.Id, boMessenger.Date, boMessenger.FromUserId, boMessenger.MessageId, boMessenger.Time, boMessenger.ToUserId, boMessenger.UserId);

            return(model);
        }
        public virtual BOMessenger MapEFToBO(
            Messenger ef)
        {
            var bo = new BOMessenger();

            bo.SetProperties(
                ef.Id,
                ef.Date,
                ef.FromUserId,
                ef.MessageId,
                ef.Time,
                ef.ToUserId,
                ef.UserId);
            return(bo);
        }
        public virtual Messenger MapBOToEF(
            BOMessenger bo)
        {
            Messenger efMessenger = new Messenger();

            efMessenger.SetProperties(
                bo.Date,
                bo.FromUserId,
                bo.Id,
                bo.MessageId,
                bo.Time,
                bo.ToUserId,
                bo.UserId);
            return(efMessenger);
        }
        public virtual BOMessenger MapModelToBO(
            int id,
            ApiMessengerRequestModel model
            )
        {
            BOMessenger boMessenger = new BOMessenger();

            boMessenger.SetProperties(
                id,
                model.Date,
                model.FromUserId,
                model.MessageId,
                model.Time,
                model.ToUserId,
                model.UserId);
            return(boMessenger);
        }