Ejemplo n.º 1
0
        public async Task <string> InsertNotification(Model.Notification _notification)
        {
            string Status       = string.Empty;
            var    notification = (Data.Notification)Mapper.Map <Model.Notification, Data.Notification>(_notification);
            var    result       = data.Post(notification);

            Status = result ? "Notification successfully saved." : "Failed to saved Notification";
            return(Status);
        }