public HttpResponseMessage Delete(string model)
        {
            _monitorCrud = _con.Resolve <MonitorCrudContractsLib.IMonitorCrud>();
            bool entity = _monitorCrud.DeleteProductFromDatabase(model);

            if (!entity)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Product is not found"));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.OK, "Product has been removed successfully "));
            }
        }
        public HttpResponseMessage Post([FromBody] PatientMonitor data)
        {
            _monitorCrud = _con.Resolve <MonitorCrudContractsLib.IMonitorCrud>();
            var entity = _monitorCrud.AddProductintoDatabase(data);

            if (entity == null)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Device is not added"));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.OK, "Product has been added successfully "));
            }
        }