public InsuranceClaim Add(InsuranceClaim claim)
 {
     claim.ClaimStatus = ClaimStatus.Zgloszona;
     context.InsuranceClaims.Add(claim);
     context.SaveChanges();
     return(claim);
 }
        public InsuranceClaim Update(InsuranceClaim claimChanges)
        {
            var claim = context.InsuranceClaims.Attach(claimChanges);

            claim.State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            context.SaveChanges();
            return(claimChanges);
        }
 public InsuranceClaim SetInProgress(InsuranceClaim claim)
 {
     throw new NotImplementedException();
 }
 public InsuranceClaim SetFinished(InsuranceClaim claim)
 {
     throw new NotImplementedException();
 }
 public InsuranceClaim Edit(InsuranceClaim claimChanges)
 {
     throw new NotImplementedException();
 }