public virtual Guid Add(IDonationCaseContract value)
        {
            var persistedObject = new Entities.DonationCase
            {
                DonationCaseStatus = value.DonationCaseStatus,
                EndDate            = value.EndDate,
                Name      = value.Name,
                StartDate = value.StartDate,
                Id        = Guid.NewGuid()
            };

            session.Save(persistedObject);
            this.flashMessenger.AddMessageByKey("CreateDonationCaseSuccess", FlashMessageType.Success);
            return(persistedObject.Id);
        }
       public virtual Guid Add(IDonationCaseContract value)
       {
           var persistedObject = new Entities.DonationCase
           {
               DonationCaseStatus = value.DonationCaseStatus,
               EndDate = value.EndDate,
               Name = value.Name,
               StartDate = value.StartDate,
               Id = Guid.NewGuid()
           };

           session.Save(persistedObject);
           this.flashMessenger.AddMessageByKey("CreateDonationCaseSuccess" , FlashMessageType.Success);
           return persistedObject.Id;
       }
 private bool CanDelete(Entities.DonationCase objectToDelete)
 {
     return(true);
 }