public void InsertFeeds(Feeds feeds)
        {
            using (var cnn = OpenConnection())
            {

               var id = cnn.Insert(feeds);
            }
        }
 public Feeds Map(FeedsForm form)
 {
     var newRequest = new Feeds();
     newRequest.UnitRequired = form.UnitRequired;
     newRequest.UnitType = form.UnitType;
     newRequest.Date = DateTime.Now;
     newRequest.HospId = form.HospId;
     return newRequest;
 }
 public Feeds Map(int n, FeedsForm form)
 {
     var newRequest = new Feeds();
     newRequest.BloodRequestId = n;
     newRequest.UnitRequired = form.UnitRequired;
     newRequest.UnitType = form.UnitType;
     newRequest.Date = DateTime.Now;
     newRequest.HospId = form.HospId;
     newRequest.UnitDonor = form.UnitDonor;
     return newRequest;
 }
 public void UpdateFeeds(Feeds feeds)
 {
     using (var cnn = OpenConnection())
     {
         cnn.Update(feeds);
     }
 }