Beispiel #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var service = new PeriodRepository(connString);
            await service.DeletePeriod(id);

            var response = new GenericResponse <string>()
            {
                IsSuccess    = true,
                Message      = "Period deleted successfully.",
                ResponseCode = 200,
                Result       = "Success"
            };

            return(Ok(response));
        }