public static async Task <SingleObjectResponse <TModel> > GetSingleObjectResponseForAddOrUpdateAsync <TModel>(this ConfiguredTaskAwaitable asyncTask, string messageContent)
        {
            SingleObjectResponse <TModel> response = new SingleObjectResponse <TModel>();

            await asyncTask;

            response.Message = messageContent;

            return(response);
        }
        public static async Task <SingleObjectResponse <TModel> > GetSingleObjectResponseForGetByIdAsync <TModel>(this TModel model, string messageContent)
        {
            SingleObjectResponse <TModel> response = new SingleObjectResponse <TModel> {
                StatusCode = StatusCodes.Status200OK, Success = true
            };

            if (model == null)
            {
                response.Message    = $"İstenilen {messageContent} bulunamadı. Veritabanında bulunmayan veya silinmiş bir veriye erişmeye çalıştınız!";
                response.StatusCode = StatusCodes.Status204NoContent;
            }

            response.Result = model;
            return(response);
        }