public int ApprovePendingRequestMedia(string id, string cid) { int id1 = Convert.ToInt32(id); int cid1 = Convert.ToInt32(cid); BookingMedia b = db.BookingMedias.FirstOrDefault(x => x.b_id == id1 && x.companyID == cid1); b.status = 1; db.SaveChanges(); return(1); }
public int RegisterMediaBooking(BookingMedia b) { db.BookingMedias.Add(b); db.SaveChanges(); return(1); }