Ejemplo n.º 1
0
        public ResponseData <object> DeleteAchievement(DeleteAchievement deleteAchievement)
        {
            ResponseData <object> resp = new ResponseData <object>();

            AchievementFacade fac = new AchievementFacade();

            try
            {
                fac.Delete(deleteAchievement);
            }
            catch (Exception ex)
            {
                ExceptionHandlerFactory.Factory.GetResponseExceptionHandler(resp).Handle(ex);
            }
            return(resp);
        }
Ejemplo n.º 2
0
        public ResponseData <int> SaveAchievement(SaveAchievement saveAchievement)
        {
            ResponseData <int> resp = new ResponseData <int>();

            AchievementFacade facade = new AchievementFacade();

            try
            {
                resp.Data = facade.Save(saveAchievement);
            }
            catch (Exception ex)
            {
                ExceptionHandlerFactory.Factory.GetResponseExceptionHandler(resp).Handle(ex);
            }
            return(resp);
        }