+ 2

A better way to implement this generic interface for a crud in asp.net core?

using System; using System.Collections.Generic; using System.Text; namespace Service.InterfaceService.Contracts { public interface IBaseService <T> where T: class { IEnumerable<T> GetAll(); T GetById(int id); bool Add(T model); bool Update(T model); bool Delete(int id); } }

15th Feb 2019, 2:22 AM
Kelfry Antonio Florimon De Jesús
Kelfry Antonio Florimon De Jesús - avatar
1 Answer
0
Yes.
8th Mar 2019, 7:38 AM
AYAZ ALI
AYAZ ALI - avatar