I need to update only mentioned fields in the put request body , the current issue is that all the values that are not mentioned in the entity to update are set to null 
below is my currrent update implementation in the generic repository.

```
    public virtual void Update(T entity)
    {
        Context.Attach(entity);
        Context.Entry(entity).State = EntityState.Modified;
    }

```