public string AddProductSize(int productId, int size) { string result = FAIL; try { if (productSizeRepository.AddProductSize(productId, size)) { result = SUCCESS; } } catch (Exception ex) { ex.LogExceptionToFile(); throw new Exception(ex.Message); } return(result); }