public bool DeleteEventReview(eventreview obj) { try { eventreview objeventreview = dbcontext.eventreviews.Where(t => t.eventreviewid == obj.eventreviewid).FirstOrDefault(); dbcontext.eventreviews.DeleteOnSubmit(objeventreview); dbcontext.SubmitChanges(); return true; } catch (Exception) { return false; } }
public bool UpdateEventReview(eventreview obj) { try { eventreview objeventreview = dbcontext.eventreviews.Where(t => t.eventreviewid == obj.eventreviewid).FirstOrDefault(); objeventreview.contactname = obj.contactname; objeventreview.email = obj.email; objeventreview.eventid = obj.eventid; objeventreview.mobileno = obj.mobileno; objeventreview.reviewdate = obj.reviewdate; objeventreview.reviewdetail = obj.reviewdetail; return true; } catch (Exception) { return false; } }
public bool InsertEventReview(eventreview obj) { try { dbcontext.eventreviews.InsertOnSubmit(obj); dbcontext.SubmitChanges(); return true; } catch (Exception) { return false; } }
partial void Deleteeventreview(eventreview instance);
partial void Updateeventreview(eventreview instance);
partial void Inserteventreview(eventreview instance);