Beispiel #1
0
        public DLModel.Status Save(DLModel.Status status)
        {
            var collection = _database.GetCollection <DLModel.Status>("airingstatus");

            collection.Save(status);

            return(status);
        }
Beispiel #2
0
        /// <summary>
        /// To save status details
        /// </summary>
        /// <param name="status">status</param>
        /// <returns>status model</returns>
        public BLModel.Status Save(BLModel.Status status)
        {
            DLModel.Status dataModel = status.ToDataModel <BLModel.Status, DLModel.Status>();

            dataModel = _statusCommand.Save(dataModel);

            return(dataModel.ToBusinessModel <DLModel.Status, BLModel.Status>());;
        }