practicekea_backend/microservices/_layers/data/IRepository.cs

19 lines
546 B
C#
Raw Permalink Normal View History

2024-12-02 13:24:34 +00:00
using System.Collections.Generic;
using System.Threading.Tasks;
using OnlineAssessment.Domain;
namespace OnlineAssessment.Data
{
public interface IRepository<T> where T : class, IEntity
{
List<T> GetAll();
Task<T> Get(int id);
Task<T> Add(T entity);
Task<T> Update(T entity);
bool Delete(int id);
string GetMessageByCode(string message_code, string what2replace = "");
byte[] ConvertStringToBytes(string theString);
string ConvertBytesToString(byte[] theBytes);
}
}