Ignore:
Timestamp:
07/31/20 10:15:02 (3 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
d8fafb8
Parents:
4e72684
Message:

Update & add service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/FarmatikoRepo/PharmacyHeadRepository.cs

    r4e72684 ra55ef91  
    11using FarmatikoData.FarmatikoRepoInterfaces;
    22using FarmatikoData.Models;
    3 using System;
    4 using System.Collections.Generic;
    53using System.Linq;
    6 using System.Text;
    74
    85namespace FarmatikoData.FarmatikoRepo
     
    4542        public void Remove(PharmacyHead pharmacyHead, string Name)
    4643        {
    47             var phead = (PharmacyHead)_context.PharmacyHeads.Where(phead => phead.Name.Equals(Name));
     44            var phead = (PharmacyHead)_context.PharmacyHeads.Where(phead => phead.Name.Equals(Name)).FirstOrDefault();
    4845            _context.PharmacyHeads.Remove(phead);
    4946            _context.SaveChangesAsync();
Note: See TracChangeset for help on using the changeset viewer.