/// <summary> /// Adds the specified site action template recipient. /// </summary> /// <param name="siteActionTemplateRecipient">The site action template recipient.</param> /// <returns></returns> public tbl_SiteActionTemplateRecipient Add(tbl_SiteActionTemplateRecipient siteActionTemplateRecipient) { if (siteActionTemplateRecipient.ID == Guid.Empty) { siteActionTemplateRecipient.ID = Guid.NewGuid(); } _dataContext.tbl_SiteActionTemplateRecipient.AddObject(siteActionTemplateRecipient); _dataContext.SaveChanges(); return(siteActionTemplateRecipient); }
/// <summary> /// Updates the specified task duration. /// </summary> /// <param name="siteActionTemplateRecipient">The site action template recipient.</param> public void Update(tbl_SiteActionTemplateRecipient siteActionTemplateRecipient) { _dataContext.SaveChanges(); }