kind of model do you use to receive the status of the methods like
{
bool isSuccess
string message
..
}
I use generic repository pattern and unit of work with entity framework core.
this doesn't seem relating with databases
i just wanted to know what return type models can i use , as i return status codes to client but for my methods in controller i wanted the success report and stuff
oks, will read about them. I wasnt well aware of Uow even tho i was using it subtly , have to learn
i've ofteen seen using the classic container template like class DataWithStatus<T> { bool isSuccess string message T data }
thankyou , using this now !!
Обсуждают сегодня