Example #1
0
        public virtual async Task <string> DeleteByID(int id)
        {
            var entity = service.GetByID(id);

            try
            {
                await service.DeleteByID(id);

                return(GlobalConstants.DB_ENTITY_REMOVE_SUCCESS);
            }
            catch (Exception e)
            {
                return(GlobalConstants.DB_ENTITY_REMOVE_FAIL + e.StackTrace);
            }
        }